function login(lastPath) {
	var username = $("#username").val();
	var password = $("#password").val();
	$.post(ctx + "/user/login", {"authUser.username": username, "authUser.password": password}, function(data) {
		if(data) {
			if(!data.success) {
				$("#exception").html(data.msg);
			} else {
				window.location = lastPath ? ctx + lastPath : ctx;
			}
		}
	});
}
function showUserExt() {
	$(".user-detail").toggle();
}